<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> 局部过滤器</title>
    <script src="../../vue文件/vue.js"></script>
</head>
<body>
    <div id="app">
       <!-- <p>{{msg | f1}}</p> -->
        <p>{{msg | f1('a','b') | f2('c','d')}}</p>
    </div>
</body>
<script>
    let vm = new Vue({
        el:'#app',
        data:{
            msg:'hello'
        },
        filters:{
            f1(text,arg1,arg2){
                return text+"aa"+arg1+arg2
            },
            f2(text,arg1,arg2){
                return text+"bb"+arg1+arg2
            }
        }
    })
</script>
</html>